<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
	$(function() {
		parent.$.messager.progress('close');
		
		$('#form').form({
			url : '/laundryFeeController/add',
			onSubmit : function() {
				
				if($("#showFee").val() != null ) {
					$("#fee").val($("#showFee").val()*100);
				}
				
				parent.$.messager.progress({
					title : '提示',
					text : '数据处理中，请稍后....'
				});
				var isValid = $(this).form('validate');
				if (!isValid) {
					parent.$.messager.progress('close');
				}
				return isValid;
			},
			success : function(result) {
				parent.$.messager.progress('close');
				result = $.parseJSON(result);
				parent.$.messager.alert("提示",result.msg, 'info');
				if (result.success) {
					parent.$.modalDialog.openner_dataGrid.datagrid('reload');
					parent.$.modalDialog.handler.dialog('close');
				}
			}
		});
	});
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false" title="" style="overflow: hidden;">
		<form id="form" method="post">
			<input type="hidden" name="companyLaundryId" value="${companyLaundryId}">
			<table class="table table-hover table-condensed">
				<tr>
					<td>洗衣类型</td>
					<td >
						<input name="laundryType" type="text" style="width: 200px" />
					</td>
				</tr>
				<tr>
					<td>单位价格（元）</td>
					<td >
						<input id="showFee" type="text" class="easyui-numberbox" precision="2" min="0" max="99999.99" value="0" style="width: 200px" />
						<input name="fee" id="fee" type="hidden" />
					</td>
				</tr>
				<tr>
					<td>所需时间（天）</td>
					<td >
						<input name="takeDate" type="text" class="easyui-numberbox" min="0" max="999" value="0" style="width: 200px" />
					</td>
				</tr>
				<tr>
					<td>状态</td>
					<td >
						<input name="status" type="radio" value="1" checked="checked"/>可用<input name="status" type="radio" value="2"/>不可用
					</td>
				</tr>
				<tr>
					<td>备注</td>
					<td>
						<textarea name="remark" rows="3" cols="10" style="width: 200px;height: 100px"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>